code written for stanford startup class