Added some code for companion objects.
Also looked at extending the App using a companion object.