Added header
added dowhile loop