array mapping and class naming