finished to follow the example of Head First jQuery ch06.