Add base Class for Encode and String REST