Firsta attempt in AngularJS