submit 1 of assignment 2

implement the 2 requests functions