lab3 reworked