Added solutions.
Changed lstlisting language and language style.