Add factorial example