numberInLine method V1