Lab1 exercise2 solved