forgot that arr can be an int. Also, I should make the private.