Adding code for HW 1