Create using for function and append function