add starter code; fixed issue #8