source code from the pro angular book