Updated code style for examples