first pass at class 5 homework