Added code to display the bar in different sizes