Codes of HW1

Updating the codes of HW1 in the github repo, for the code-swapping