Adding final lab6 solution