added physic class and modified shape structure