Adding some ruby code to call the server