John McAvey's CSCI 151 solutions