ruby Array class doesn't have a splice method.  replaced with delete_at