Sigmoid interview question

Write basic class functions to define a graph