implemented average llama AI