Almost good. Please read this and edit your post to to get format of code part in your posts now and in the future in the right way