implemented `length` method.
added a new spec.