Changed to while loop
Moved to 12
Added p style
replace for with while loop
Merge branch 'styledOutput'