Made data_sample a typedef and a float