Added generic method example