Hw 2 unoptimized code. Prints out Correct Example graphs