Using processing and code from https://www.khanacademy.org/cs/bar-chart