Inverse of a Matrix

This is my solution for the programming assignment 2 in R programming course on Coursera. 
The first function makes a matrix x and the second function calculates the inverse of matrix x.