added master detail sample