Gravar-mail: A prototype rehabilitation device with variable resistance and joint motion control