This is an Angular approach for the coding challenege