patchwork class