Added 2 first functions and average