Working with methods receiving interfaces as arguments