example generator & pe2 generator solution