this piece of code is for Mi9 interview test