Simple example for implementing gravity