Project 4A for CS 537