made the program actually object oriented.