Code with bar chart (Part 1)