Added const to print_data method