Added sample code from UCLA project