Homework 3 + codes