HES CSCI E-90 homework 6