Added simple main program for factorial