Moving name code into a library