Solved exercise 1-23
Put the function getlength in an external file and made a header file for it