Implementing the initialize method