New code using nrw's package, now with snippets!