Completed factorial task