first draft code