added code from thinkster.io learn-angular tutorial