Model: Changed the Methods to get and set data.