Angularjs: practice 56 - improved