A person is responsible for conduct which is an element of an offense if the conduct is either that of the person himself, or that of another and he is legally accountable for such conduct as provided in Section 5-2, or both.