Week 1 solution for balance problem