Added the Event class and tests for the Pin class.