solutions for the first two sessions of homework