move shell sample code to src directory