sample programming exercises