converted vanilla quiz to angular