solved problem number 4