finished Sarray class