Changed Module type class to use TypeFamilies