class for bit pattern
class for bit pattern