Codes for HW4