complete sample6a;add friction and elasticity.