problem4 (second) added