Added isDivisible method.