exercise7 updated