first solution to ex0201