adds spec and src files for calculateFactorial.