relationship and parents mapping. Closes #16.