added a method to return the types of all the columns