added getter and setter to the Field and Map classes