Ruby histogram for practice