Moved Module class to separate file.