Solution for p59.