changed Object to ? extends model