Nim class extended