slightly better hook example