1st try at problem 5.1
perhaps these etudes would be better with tests