creating a simple angular controller