added get(int index) method