First variant of buying ticket mechanic