Added code + updated unit test

Meno: Daniel Soos
wiki: http://vi.ikt.ui.sav.sk/User:Daniel.Soos?view=home
Cviciaci: Michal Laclavik
Ine poznamky vid. v commitoch a na homepage