Change from OO way to function way.