Factory design pattern for Carmine. Got it compiling? Linking problems.