Refactor Ticket class