beginnings of Assignment 4, first pass at Question 1