Using at() method instead of [] method