Base layout class.