Put the ContactListener in its own class.