Coding for exercises from Pine text