finish code of first histogram plot