Task1: flags and length parsed