added simple solution to the Staves problem