Code analysis and created httpGet method