Add generating function and a directory with examples