started to create the barToPie function. Noticed there is an audio error when loading the program, not sure the root cause yet.