Added get_data and set_data methods