Implementing a simple system with gravity