Try to implement while()