code for practice angular