Data representation and simple logic operations