Program 9 for my CSCI 221 class