Add statistic model

See #6.