Java foundation sample work