practice code from MEAN text