An exploration of the Singleton pattern in Swift