outline package structures; write AppContext