You basically use the class as a function that has inputs and returns outputs. Why not having a function instead ?