how would i implement a while loop?