This is a solution of Assignment by Marko Mitic.