tutorial as part of CS 189 project