practice code for hw10.