updated/completed computer logic - ready for testing