structure: add Fields() function, closes #4