finished solution to iev