code from final presentation

code form final presentation, still needs to be debugged a bit

good job guys!!!!!!!!!