Added bean object and a simple gui