Use #select
Fix heredoc names
Fix error name