created abstract class for line validations