Adding product inventory class in OOPs principles