add explanation of getName method