Some basic examples in d, written as I needed various things for class project