code and answers to sprint2 lab