Implemented pattern display

PS: it looks pretty rubbish