made files for all programs in assignment 2 and finished Factorial.java