Version 6 exercises 6-8