solution to refrain exercise