added fields functionality
Updated with fields example