solution for gravitation by me