paterns realisation from book