Exercise number 7 in introduction to object oriented programming at UIS.