worknig on a cleverer #40 solution.