Before you make the GUI, I suggest getting the program to work in the console first.

Start to write your basic class and show us what you have.
A quick Google search will find many code...