solved problem #2