working through examples, learning js