Amended Motor Class to return Double instead of int