Working through some simple examples to understand the fundamentals of AngularJS