This is a slightly more elegant solution.