Completed Acceleration code using helper classes