Implemented a GUI Sample