The solution that i've submitted.