Completed functions for assigment