Added class, header, and main program for homework 3