Added result class
Added result class
Adjust code to new Result class