command class written, integrated with parser