Start to implement sample_management_activity. Not fully working