Fixing bugs in algo lab starter file.