Implement :parent option

Fix #6