added generate_solution

tested, it work as it should