starting conversion to angular, covering basic functionality