Added the type variable and pubic get/set functions for accessing the data
Added the get/set implementation for the type variable
Added the setType function in the constructor
Added the setType function in the constructor
Added the setType function to the constructor