lab 4

had some problems with the second task, but as soon as I have shortened it the problem resolved itself.