Added code to create a nested Command Class