Changed data structure

Data structure changed from byte to int as int has to be returned.