Write code in class in real time. This way you’ll be forced to pace yourself, so students can better see and understand the process you’re going through.
This will help build their confidence and show them various ways of problem solving the difficulties that come with writing code.