implemented stock and StockList class

also cleaned up the directives