Adding Type class.