wrote some stuff. Tests not working. bed for now.