Finished the length method.