Solved Easy problem: Implementation