implemented the receipt printer class