completed a somewhat working exercise5