Refactors Receipt class