Uploaded math classes and functionality to arm simulation