exercise 8.9-Randy Ramli