Correct error in sample codes

- invalid indentation,
- unwanted :.