A framework for ethical artificial intelligence - from social theories to cybernetics-based implementation. (30th July 2021)