update samples, modify SOA class