Made Command class an interface