working in #7 exercise