week6 implemented