new version of hw1 for phil 50, with exercise 3 modified