Creating type for list and view for each type