Added constructor for Result class.