Added do while but not satisfied with only braces