Added solution for 5.7