Adding events to Foundation.java