added functionality for entering different stock types