adding the parse func and tests
parse func method
merging