Add homework 4 proposed solution