First iteration for the accumalet exercise