Create a class instance (without a class) by using functions in Swift | Hacker News Reader