almost done project06 need to check for errors