added setData and getData methods

Signed-off-by: Blessing Osakue <iyoworks@gmail.com>