add len method