adding queue class.