So I just reviewed the code for bills and it looks like the same thing as what I have here excluding the error function which I have corrected. 
Should I be returning a json instead like Jordan?