finished this problem. smart me