Fix exercise code