Added initialization, get_field and iteration.
Refactored to_struct method.