commented code lab4 done