Implemented hasDiscount and setDiscount