added rigid body serialization class