lab4 solution & amends