Namespace error and shadow warning fixes in rb ex7