A viewpoint on amalgamation classes