wrote code for firstInvocation method