Simple GUI in C