lab8 code style is weird...