Construction of a family of finite maximal codes