some excercise i have done and produced some workable code