Updated example
Added map method for dynamic queries