rewrite first 11 solution