Tidy.
Use classes.
Add main code.