The use of simulation in teaching the basic sciences