learning project with possibly horrendous code