zad1 & part of zad 2