A unified approach to bivariate discrete distributions