Changed return type of getSize function