Adds getter setter for fields in Yeild