make entire_length variable a private member that cannot be set from the outside and only accessed thru a const getter.