Stuck with many errors and hard to understand