improved the solutions for day 11