got output for HW2, got base for HW3