define class Marking

reformulate codes using Marking