handle size inputs with new Length class