copied down code from class. couple things work so that's cool.