Fix #10 - Added functionality for parent option and wrote tests