Add statistic and ticket clases
Some refactor