Virtual reality in teaching and design