added if and elsif conditionals to create letter