Added code

as emailed by Maja but not included in the initial repo