Adding cost= setter