Added function to get gender.