Initial solution

A little slow