 	end
 
 	def handle(req, state) do
-		{:ok, req2} = Erlang.cowboy_http_req.reply(200, [], "Hello world!", req)
+		{:ok, req2} = :cowboy_req.reply(200, [], "Hello world!", req)
 		{:ok, req2, state}
 	end
 

	@behavior :supervisor

	def start_link() do
		Erlang.supervisor.start_link({:local, :elixir_cowboy_sup}, :elixir_cowboy_sup, [])
	end

	def init([]) do

	@behavior :application

	def start() do
		IO.puts("Starting up")
		:application.start(:crypto)
		:application.start(:ranch)
		:application.start(:cowboy)
		:application.start(:elixir_cowboy)		
	end

	def start(_type, _args) do
		dispatch = [
			{:'_', [{:'_', :elixir_cowboy_handler, []}]}
		] 
		:cowboy.start_http(:my_http_listener, 100,
			[{:port, 8080}],
			[{:dispatch, dispatch}]
		)
	end

