implemented the TrioModel class