Hi Wentao! Thanks for putting your solutions to Programming in Haskell online. It was many years ago that you went through that book! Do you use Haskell now? I see you have some Rust projects... Also, did you figure out all the solutions yourself? This one in particular had me stumped. Do you remember how you figured it out? https://github.com/w3ntao/programming-in-haskell/blob/master/Chapter-12/Exercise_12_5_7.hs#L12-L18 I've been studying Haskell on-and-off for a few years and usually have to look at the solutions for the tougher puzzles. Cheers, Greg