Implemented first few functions