Basic factorial program in ruby