finished api.rb added to the bacon_test.rb