HW 4, first working version