exercise #6 submitted