HW3 - without graphics