Simple ram implementation