almost finished implementation chapter