solved problem #13