implements initial version of complements generator