how to create a simple GUI library system