trying factorial program