Coursera Application programming exercise