Updated source stubs to include actual code