started with binning of data.
next: adding weights and plotting