added read_from_file functionality.