added test from ch 5