Started writing rough code using complete(?) algorithm