created functionality for the products