Add new method setData and implemented toString