Create sell_and_buy_function.rb