stable working version, first task HW3