add length funciton
Merge pull request #1 from salexkidd/feature/length

add length funciton