add unit test
showcase ng-click and ng-class
refactoring to use function and scope variable