add quit() method