version that I handed in of HW09
changed a la lakoba. not including all of the figures