Code for HW3 ready to upload.