Added and tested setParadigm function.