added fields functionality
added fields example