implement position and gravity modules in a simple way