included working serial version of ABC code