An attempt to commit a crime consists of two elements: a specific intent to commit the crime, and a direct but ineffectual act done toward its commission.