practicing small programming problems