updated person rb to have get and post functions