Chartbeat coding challenge