Added solution for arithmetic mean