Added source code from Project 3

haven't tried to open in eclipse yet