proper java classes