Generation from zad1 cw03 implemented and thoroughly tested (in both configurations)