Solutions to 3 remaining problems from assignment 3