Finished all the coding sections of homework 8