life gem code

preliminary