refactor Api class into Operation
Merge pull request #17 from tpitale/refactor-operation

Refactor operation