implemented and used service_result class