IMproving solution for 40