First attemption of drawing histogram