Totally finished homework 6