lab2

with comments