Angluar approach for the challenge (only the front end )