Refactoring Kratu class and Compute