Solutions till problem 6