Initial attempt at scoring code - for review