Encapsulation functionality for a names array