implemented divisible by 5 logic