adding code and packages to compile code