Assignment 1: the pythagorean theorem