Program 1 for CS 369