solved problem17