add my solution to exercise 4 in acl