Add factorial to basics