'puts' & 'gets' program with added .length method