created an abstract IPhysics and a class Physics