Written code to make the initialize method pass