Remove inheritance from Scanner class.