I fixed the constructor and tick method