added Button class and event listener for clicking buttons