Changed and tested Receipt class