Fix examples

Examples were not working if copied into code.