If I write code for you it would not help in learning but yes some other example like the one mentioned in links can help you