function: the actions and activities assigned to or required or expected of a person or group
duty: work that you are obliged to perform for moral or legal reasons
pin: cylindrical tumblers consisting of two parts that are held in place by springs; when they are aligned with a key the bolt can be thrown