implements length, nth.