hist and plot
refactor
complete