Added main java class.