After the Static Factory Method it’s time for classic Factory. Factory is very useful and often used construction design pattern. Kotlin has interesting advantage thanks to sealed and internal classes, that are missing in Java.