added beginning of chapter 4 exercises from AngularJS book