Added Flags class for bitflags