length tests and modification of main program to reflect new objects