Completed mimic.py exercise.