Code and such for exam 2