Made writeRecipe static and worked on NewRecipeActivity