beer queue functional