moved member class from global scope to class scope as type