refactor pakages. move productAdapter to external class