added solution to lab2 from solved branch to master