Problem 89 solution
Merged with presets