Creating the instance inside the main class

This way, the instance is shared among both the command executor and the listener