finished day3 code, but not fully debugged