Added basic event handlers and started programming