Replace / with // for integer division as per feedback