pair constructor with single parameter; method to unwrap the value contained in an either