use std::collections::HashMap;

#[deriving(PartialEq, Show)]
pub struct Post {
    header: HashMap<String, String>,
    content: String
}

impl Post {
    pub fn new(header: HashMap<String, String>, content: &str) -> Post {
        Post { header: header, content: content.to_string() }
    }

    pub fn content(&self) -> &str {
        self.content.as_slice()
    }
}

use std::collections::HashMap;

#[deriving(PartialEq, Show)]
pub struct Post {
    header: HashMap<String, String>,
    content: String
}

impl Post {
    pub fn new(header: HashMap<String, String>, content: &str) -> Post {
        Post { header: header, content: content.to_string() }
    }
}

--- 
+++ 
@@ -10,4 +10,8 @@
     pub fn new(header: HashMap<String, String>, content: &str) -> Post {
         Post { header: header, content: content.to_string() }
     }
+
+    pub fn content(&self) -> &str {
+        self.content.as_slice()
+    }
 }
Add method to retrieve content from Post
