Channel codes and capacity 2 homework