implement the first solution