Updated code examples

They still aren't updated all the way though