Added some java inheritance stuff