for basic java toy program