Extending and deprecating old class