Add getField method to category class