Changed rectangle to int class