Code used in class Jan 17