How to design API of Machine Learning library | Hacker News Reader