enumpde: p1 exercise rewrite