Changed java to class