Made classes follow rule