Adding a simple command pattern