Rule Learning by Modularity