Final version of lecture's example application