preference: taking name input for Data class