Final homework 6