Ex 1.24 completed

Fixed code; tried experiments