Complete the method cacuCredit, test.rb is the method test case