Added solution for #57.