Working on apply method