bundle install
adding error handling
adding some tests