adding solution to basic bar plot