Close to final code formatted, only issue is two extra characters printed at the end???