Simple factorial program