moving main function to different seperate file to make library available to use
compiling the structure