First attempt at problem 4