models : refactor by using extend. Add Shape and PhysicalObject classes