solutions for assignment eight 8496150