Bits of type systems