extracted markdown text storage into separate class