solving some more problems from old exercises