An implementation of master/detail that can be used for any project