Better solution for level 10