coding theory homework week 3