Utilizing genetic techniques to answer ecological questions