Yes, you did well ^^ Actually, the method doesn't really matter how you do it. Rather, it's good to be able to implement it in various ways. As a result, if the answer comes out the same, that's the answer. If I go later, I'll consider the speed, too.