added load_data method