Format Code and add some base class.