did you check the code online or in a book ?