References in code works