The three laws of robotics
1.A robot must not injure a human,or allow a human being to come to harm.
2.A robot must obey the orders given by human beings unless they conflict with the First Law
3.A robot must protect itself as long as such protection does not conflict with the First or Second Laws.