Student gives a foot massage to avoid imprisonment