add factorial example