modify some indent for consistency of codes. and add Region class.