solved #13-14