Fixing some checkstyle issues in the samples