add getPost() method, which get values from $_POST array, and save
them as properties of the argument object