wrote some code to pass both tests. created an initialize method