fixes #40: using a ModelCollection class now instead of arrays