code that helps me learn simulating physics in an android application