Created classes for commands and events