Add code for beginner tutorial from ngBook