How To Extend A Class In Java