final code for bar chart for our project