solve exercise #82