directives tutorial: integrate with $scope