First implementation for unfold operator