Beginner solution; fixed earlier noob mistake