A MATLAB based gravity simulator can be used to explain different gravity based concepts to students in the class