started adding code from books