Code that I wrote for an internship during Summer 2011