Added main body of code