created basic structure for function

created basic structure for function