work on Pythagoras example