Modifying prog3a.s