Td1 Scala : until complex numbers