Code from Senior Design Project