Satradix: working histogram

Working but not in the most efficient way.