Implemented the solution for the register expense type ref #2