Put while in {}