Created region class + flags sytem