Write basic structure and classes