simplifying button exercise