second attempt - in class
needs work
just following along in class