Global variables and custom functions

Animating the bars