creates new instance of command classes