fucntions in main module and added examples.jl to test dir