add destroyBody func to example 5.2