JSON ouput for homework 3