add class Command, inner class Adapter that will lose control after the first command