kata 18. c# generator created, buggy