a Foundation 4 exercise