Simulations for virtual labs