Niche : theory and application