Added instructor's code. Began outlining graph function