Commit factorial exercise