add a basic trainer for a planar pattern