real_data function is complete