Started hw5. Still need to debug.