second commit: changed insert() and length() function