initial code.
ignoring swp
first example.