Change track_event to instance method