added field get functions and added save method