Finished the register expense in the repository ref #1