built basic angular function
added angular functions