myCollection class is working with basic ints