HW3 submitted. Miraculously works.