added: controller - defined a method on the scope