Moved implementation of Module class to combinatorics.py file.