Trying to learn programming by solving these problems