removed ICommand interface and corrected the protection level of the classes