issue #4 - implemented method override