Readded lab 3 solution, fixed an error.