Changed default size of sample to float. This should be customizable later of course