Creating object for result