added fromText function to Channel