Understanding the Factory Method Pattern in Scala | CodeSignal Learn