Follows the code example presented in 'Flask Web Development'