HW9:task1: code for review