Completes third homework assignment