Move code to backbone example