convert first functions to coffee