Write a class and get post methd to learn template and form