my first chages to algorithm and gui