correctly implemeted the discriminatedUnion patternmatch and implemented first unit test.