updated notebook that computes a simple version of a motor