In 1840 who had developed a messaging system?