creating a prototype events data type