Minimal pattern Adapter class example creation