Add factorial solution