added attrs args to hooks examples