Move code check_style to a mtehod