Solutions to HW for week 1