codes from the book - "Instant Flask Web Development"