week 2 implemented json portion