refreshed examples with better practices