Refactor | Beverly | change Main to iterate over solutions and print