Added core classes for physics engine