Adds java inheritence