Used build-in writeln and added some full stops