creating a get method