Fix code style issues in sample