Part 1 of assignment 3 for the UW online cpp class, creating a factorial template