Add ReadFrom method

Add test in main method