Writing a simple R package to practice TDD, also covers mutable package objects (enviroments) and formatting S3 classes in the RStudio view command