On a generalized entropy and a coding theorem