Worked on functions for Block class