types updated to wildcard according to PECS (stands for producer-extends, consumer-super)