some more homework problems
modified euclidextended to be importable