created divisibleByThree and divisibleByFive functions