fixed part 4 to show as histogram for comparison against part 1