Implementing write chapter

- TODO: Implement namespaces before contuing