Edited to adapt to changes in events-ear-assignment4