Initial attempt for programming assignment #2