implementation of few system functions and definition and execution of custom functions