new version => firs.rb's

adding new method and some if, else statement