implementing a simplified angular framework