implement actions.rb  first iteration