Following the tutorial from angularcourse.com