Created necessary methods