Added classes for commands and built a command structure