Could you post the complete code for this either here or on GitHub? Thank you.