Added methods to Sarray class