Submited code for HW3