coding theory homework week 2