These 2 functions are used to extract multiple data types, it would be beneficial if we have unit tests for them.