solve exercise #48