Changed visibility of inner result class constructor