Re-added autonomous code from classmate