added custom library ruby file and added methods to get all tests to pass