Similar to Haskell Cargo Cart