I tired autowired but it was giving me weird errors