Implementing the first method.