It does the job beautifully, with a lot less lines of code