exercise code and memo