changed formatting to look like professor's example