Whileloop example