Implementing getticket