Coding practice inspired by the book!