Wrote skeleton for parallel implementation