constructing the class stock

to initialise -  constructing the class for handling stocks