Sam Hinkie to teach at Stanford