Multiple classes in an (undefined) ArrayList?