added class for initializing dynamic bodys