wrote the rest of the initial version

There we go.