HW and exercise solutions