Added solution for square with mass in the center.